package org.example;

import org.springframework.context.EnvironmentAware;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

@Configuration
@Component
public class AConfig implements EnvironmentAware {

    public Environment getEnvironment() {
        return environment;
    }

    public Environment environment;

    @Override
    public void setEnvironment(Environment environment) {
        this.environment = environment;

    }


}
